package com.xgk.boot.module.core.dal.dto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 分段计费规则配置值
 */
@Data
public class SegmentPriceRuleDto {
    public SegmentPriceRuleDto() {
    }
    public SegmentPriceRuleDto(BigDecimal rangeBegin, BigDecimal rangeEnd, String calculationRule, BigDecimal ruleValue) {
        this.rangeBegin = rangeBegin;
        this.rangeEnd = rangeEnd;
        this.calculationRule = calculationRule;
        this.ruleValue = ruleValue;
    }
    private BigDecimal rangeBegin;
    private BigDecimal rangeEnd;
    /**
     * 分段计费规则，默认只有3类
     * rate %上浮，add 固定值上浮, fix 固定值
     */
    private String calculationRule;
    private BigDecimal ruleValue;
}
